home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / src / sleep.c < prev    next >
C/C++ Source or Header  |  1996-01-04  |  252b  |  15 lines

  1. #include "amiga.h"
  2. #include "timers.h"
  3. #include "signals.h"
  4.  
  5. int sleep(unsigned seconds)
  6. {
  7.     __chkabort();
  8.     _timer_start(_odd_timer, seconds, 0);
  9.  
  10.     while (!_timer_expired(_odd_timer))
  11.     _handle_signals(_wait_signals(_odd_sig));
  12.  
  13.     return 0;
  14. }
  15.